cppcheck software package provides tool for static C/C++ code analysis, you can install in your Ubuntu 12.04 LTS (Precise Pangolin) by running the commands given below on the terminal,
$ sudo apt-get update $ sudo apt-get install cppcheck
cppcheck is installed in your system.
Make ensure the cppcheck package were installed using the commands given below,
$ sudo dpkg-query -l | grep cppcheck *
You will get with cppcheck package name, version, architecture and description in a table
| Distro | Ubuntu 12 04 lts precise pangolin |
| Section | Development |
| Package | cppcheck |
| Version | 1.52-1 |
| Description | tool for static C/C++ code analysis |
| Sub Section | devel |